<?php
/*
Engineer: Derek Shue
Updated: 12/2/2011
Description: Displays a list of current volunteer requests to community partner

*/


 ?>
<ul>
    <li>
        <a href="<?php echo $this->url(array('controller'=>'partner','action'=>'allvolunteers')) ?>">View Past Volunteer Positions</a>
    </li>
    <li>
	<a href="<?php echo $this->url(array('controller'=>'partner','action'=>'submitvolunteer')) ?>">Submit New Volunteer Position</a>
    </li>
</ul>
<?php if($this->positions):?>
<h3>Your current volunteer requests:</h3>
<table>
    <tr>
        <th>Position</th>
        <th>Term</th>
        <th>Positions Requested</th>
    </tr>
    <tr>
    <?php foreach($this->positions as $pos): ?>
    <tr>
        <td><a href="
		<?php echo $this->url(array('controller'=>'volunteer','action'=>'positiondetails','position'=>$pos['VRID'])); ?>
		"><?php echo $pos['POSITIONTITLE'] ?></a></td>
	<td><?php echo $pos['TERM'] ?></td>
        <td><?php echo $pos['NUMBERREQUESTING'] ?></td>	
    </tr>
    <?php endforeach ?>
    </tr>
<?php endif; ?>
<?php if(!$this->positions):?>
	<h3>You have no current internship requests.</h3>
<?php endif; ?>
</table>

